<? foreach($user_info as $UI ) { ?>
<div class="page_heading_text">Sell books</div>
<div class="clear"></div> 
<div class="clear" style="margin-bottom:20px;"></div>
<!-- Start Book Package -->  
<div class="my_account_area_main">
    <span style="font-weight:bold; font-size:24px;"><?=$UI->fullname?></span> Member since <?=mysqldatetime_to_date($UI->created) ?> 
</div>
                 
<div class="my_account_area_main">
	<div class="my_account_top_border"></div>
	<div class="my_account_menu_top_border">
		<? $this->load->view('includes/my-account-menubar'); ?>
</div>
<div class="book_sold_status_div">
<div class="sold_status">                  
	<ul>
		<li><a href="#" title="all">All</a></li>
		<li><a href="#" title="sold">Sold</a></li>
		<li><a href="#" title="unsold">Unsold</a></li>
	</ul>   
</div>
</div>
<div class="orders_profile_main_div">
<div class="orders_dv1">
	<div class="handler"><label style="margin-right:38px;">My sell books</label> 
	<span style="margin:0 0 0 584px; color:#000;"><a href="add-books.php">Upload your Books</a>&nbsp;</span>
			</div>
						   
			<div class="my_account_heading_div_hei_con">
				<div class="order_heading_profile_field">
					<div class="order_history_heading">Title</div>
				</div>
				<div class="order_heading_profile_field">
					<div class="order_history_heading">Author</div>
				</div>
				<div class="order_heading_profile_field">
					<div class="order_history_heading">ISBN</div>
				</div>
				<div class="order_heading_profile_field">
					<div class="order_history_heading">Status</div>
				</div>
				<div class="order_heading_profile_field_total">
					<div class="order_history_heading_total">Price</div>
				</div>
				<div class="order_heading_profile_field_edit">
					<div class="order_history_heading_total">Action</div>
				</div>
			</div>
			<? foreach ($sellBookHistory as $SBH)?>
			<div class="order_history_main_div">
				<div class="order_heading_profile_field">
					<div class="order_history_heading"><?=$SBH->Name ?></div>
				</div>
				<div class="order_heading_profile_field">
					<div class="order_history_heading"><?=$SBH->Name ?></div>
				</div>
				<div class="order_heading_profile_field">
					<div class="order_history_heading"><?=$SBH->ISBN ?></div>
				</div>
				<div class="order_heading_profile_field">
					<div class="order_history_heading"><?=(($SBH->In_stock==1)?"Available":"Sold") ?></div>
				</div>
				<div class="order_heading_profile_field_total">
					<div class="order_history_heading_total">$<?=number_format ( $SBH->Sell_price , 2 , '.' , ',' ) ?></div>
				</div>
				<div class="order_heading_profile_field_edit">
					<div class="order_history_heading_total_down">
						<div class="order_history_edit_icon">
							<a href="#"><img src="<?=base_url("images/view-icon.gif")?>" width="16" height="16" border="0" alt="View" /></a>
						</div>
						<div class="order_history_edit_icon">
							<a href="#"><img src="<?=base_url("images/edit-icon.png") ?>" width="16" height="16" border="0" alt="Delete" /></a>
						</div>
						<div class="order_history_edit_icon">
							<a href="#"><img src="<?=base_url("images/delete-icon.png") ?>" width="16" height="16" border="0" alt="Delete" /></a>
						</div>
					</div>
				</div> 
			</div>  
		</div>
	</div>
<div class="clear"></div>
</div> 
<div class="clear"></div> 
<div class="clear" style="margin-bottom:20px;"></div>   
<? } ?>